/**
 * icon字典
 */
const iconMap = [
    {
        type: 'leave',
        name: '请假申请',
        color: '#FFA22D',
        className: 'first_icon_leave_default1'
    },
    {
        type: 'leavecancel',
        name: '销假申请',
        color: '#FFA22D',
        className: 'gms_list_icon_holiday_default'
    },
    {
        type: 'overtime',
        name: '加班申请',
        color: '#3AA0FF',
        className: 'first_icon_overtime_default1'
    },
    {
        type: 'replenishmentcard',
        name: '补卡申请',
        color: '#F2637B',
        className: 'first_icon_replenishmentcard_default1'
    },
    {
        type: 'getout',
        name: '外出申请',
        color: '#36CBCB',
        className: 'first_icon_getout_default'
    },
    {
        type: 'businesstrip',
        name: '出差申请',
        color: '#4DCB73',
        className: 'first_icon_businesstrip_default1'
    },
    {
        type: 'customerservice',
        name: '招聘需求申请',
        color: '#FFA22D',
        className: 'first_icon_customerservice_default'
    },
    {
        type: 'interview',
        name: '面试申请',
        color: '#3AA0FF',
        className: 'first_icon_interview_default'
    },
    {
        type: 'offer',
        name: 'OFFER申请',
        color: '#F2637B',
        className: 'first_icon_offer_default'
    },
    {
        type: 'entry',
        name: '入职申请',
        color: '#36CBCB',
        className: 'first_icon_entry_default'
    },
    {
        type: 'news',
        name: '新闻流程',
        color: '#1890FF',
        className: 'first_icon_news_default'
    },
    {
        type: 'institutionRelease',
        name: '制度流程',
        color: '#FFA22D',
        className: 'gms_list_icon_zhidu_default'
    },
    {
        type: 'ownPost',
        name: '发起调岗申请',
        color: '#36CBCB',
        className: 'gms_list_icon_leave_default'
    },
    {
        type: 'otherPost',
        name: '他人调岗申请',
        color: '#4DCB73',
        className: 'gms_list_icon_leave_default'
    },
    {
        type: 'lzApply',
        name: '离职申请',
        color: 'rgba(255, 162, 45, 1)',
        className: 'gms_list_icon_leave_default'
    },
    {
        type: 'lzOtherApply',
        name: '为他人办理离职',
        color: 'rgba(58, 160, 255, 1)',
        className: 'gms_list_icon_leave_default'
    },
    {
        type: 'regular',
        name: '转正申请',
        color: 'rgba(242, 99, 123, 1)',
        className: 'gms_list_icon_turnright_default'
    },
    // 这里为规则配置管理页面-antdicon的图标
    {
        type: 'schedule',
        name: '考勤管理规则',
        color: '#FFA22D',
        className: 'schedule'
    },
    {
        type: 'project',
        name: '绩效管理规则',
        color: '#3AA0FF',
        className: 'project'
    },
    {
        type: 'account-book',
        name: '报销管理规则',
        color: '#F2637B',
        className: 'account-book'
    },
    {
        type: 'shopping',
        name: '固定资产管理规则',
        color: '#36CBCB',
        className: 'shopping'
    }
];
/**
 * 获取流程图标
 * @param {*} iconType
 * @returns {object} {color,className}
 */
export function getFlowType(iconType) {
    return iconMap.find(item => item.type === iconType);
}
